//
//  MK_Title_Cell.m
//  miku直播
//
//  Created by 杨尚达 on 2017/7/23.
//  Copyright © 2017年 杨尚达. All rights reserved.
//

#import "MK_Title_Cell.h"


@interface MK_Title_Cell ()

@end

@implementation MK_Title_Cell

- (void)awakeFromNib {
    [super awakeFromNib];
}

-(void)setModel:(MK_TitleModel *)model{
    _model = model;
    _titleLa.text = model.title;
    if (model.isSelected) {
        _titleLa.textColor = model.selectedColor;
    }else{
        _titleLa.textColor = model.normalColor;
    }
}

@end



@implementation MK_TitleModel

+(instancetype)MK_TitleModelWithTitle:(NSString*)title andNormalColor:(UIColor*)normaleColor andSelectedColor:(UIColor*)selectedColor{
    MK_TitleModel* model = [MK_TitleModel new];
    model.title = title;
    model.normalColor = normaleColor;
    model.selectedColor = selectedColor;
    return model;
}

@end
